#ifndef __TASK_LUA_MGR_H__
#define __TASK_LUA_MGR_H__

#include <lua.hpp>
#include <string>
#include <vector>
using namespace std;

class taskLuaMgr
{
public:
    taskLuaMgr(const string &home);
	taskLuaMgr(const string &home,const string &arch);
    ~taskLuaMgr();
	void callLuaApp(const string &name);
	void callLuaString(const string &script);
// compile addtions
	int callAction(const string &action,const string &in,const string &out,const string &opt,const string &log,string &runCmd);
	int callFile(const string &name,const vector<string> &argv);
private:
	void initEnv(void);
private:
	lua_State *m_L;
	string m_TThome;
	string m_Home;
	string m_Arch;
};

#endif // __TASK_LUA_MGR_H__